//
//  DescriptionSectionCell.h
//  XMJJ_zml
//
//  Created by 杨何华 on 2025/5/12.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface DescriptionSectionCell : UITableViewCell
@property (nonatomic, copy) NSString   * descriptionText;
@property (nonatomic, strong) UILabel  * descriptionLabel;

@property (nonatomic, assign) BOOL isExpanded; // 是否展开

@property (nonatomic, copy) void (^expandCallback)(BOOL isExpanded); // 展开/收起回调

+ (CGFloat)calculateHeightForText:(NSString *)text width:(CGFloat)width;
+ (CGFloat)calculateHeightForText:(NSString *)text
                           width:(CGFloat)width
                       isExpanded:(BOOL)isExpanded;
@end

NS_ASSUME_NONNULL_END
